<template>
  <div id="pgCom">
    <el-pagination
      @current-change="handleCurrentChange"
      :current-page="pageNo"
      :page-size="pageSize"
      layout="prev, pager, next"
      :total="total"
    >
    </el-pagination>
  </div>
</template>

<script>
export default {
  name: "pgCom",
  data() {
    return {};
  },
  props: {
    total: {
      type: [Number, String],
      default: 0,
    },
    pageNo: {
      type: [Number, String],
      default: 1,
    },
    pageSize: {
      type: [Number, String],
      default: 10,
    },
  },
  methods: {
    handleCurrentChange(val) {
      this.$emit("pageNoChange", val);
    },
  },
};
</script>
<style scoped>
.el-pagination{
  display: flex;
  justify-content: center;
  margin-top: 30px;
}
/deep/.btn-prev{
  width: 40px;
  height: 40px;
  opacity: 0.4;
  border: 1px solid #575b66;
  border-radius: 50%;
  padding: 0;
  margin-right: 20px;
}
/deep/.btn-next{
  width: 40px;
  height: 40px;
  opacity: 0.4;
  border: 1px solid #575b66;
  border-radius: 50%;
  padding: 0;
}
/deep/.el-pager li.active+ li{
    border-left: 1px solid #575b66;
}
/deep/.el-pager li{
  width: 40px;
  height: 40px;
  line-height: 40px;
  opacity: 0.4;
  border: 1px solid #575b66;
  border-radius: 50%;
  padding: 0;
  margin-right: 20px;
  text-align: center;
}
/deep/.el-pager li.active{
    border: 1px solid #575b66;
    opacity: 1;
    color: #575b66;
    font-weight: bold;
}
/deep/.el-pager li.btn-quickprev{
    border: none;
}
/deep/.el-pager li.btn-quicknext{
    border: none;
}
/deep/.el-pagination .btn-prev .el-icon{
    font-size: 20px;
     opacity: 0.4;
    color: #575b66;
}
/deep/.el-pagination .btn-next .el-icon{
    font-size: 20px;
     opacity: 0.4;
    color: #575b66;
}

</style>

